package com.example.rabbitcloud;

import com.example.rabbitcloud.consumer.SimpleMessageReceiver;
import com.example.rabbitcloud.exchange.Produce;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.stream.annotation.EnableBinding;
import org.springframework.cloud.stream.messaging.Sink;
import org.springframework.cloud.stream.messaging.Source;

@SpringBootApplication
@EnableBinding({Produce.class,SimpleMessageReceiver.class}) //SimpleMessageReceiver.class,
public class RabbitcloudApplication {

    public static void main(String[] args) {
        SpringApplication.run (RabbitcloudApplication.class, args);
    }

}
